# -*- mode: sh; -*-

# Configuration file for the Amnesia live system
# 
# You'd better never directly edit this file: rather put your custom
# variable assignments in a new file called 'amnesia.local', in the
# same directory as this one. The values found in the '.local' file
# will override the ones from this one.
# 
# These configuration files are actually shell scripts, and are
# sourced by various other scripts.

# Base for the string that will be passed to "lb config --bootappend-live"
# FIXME: see [[bugs/sdmem_on_eject_broken_for_CD]] for explanation why we
# need to set block.events_dfl_poll_msecs
AMNESIA_APPEND="live-media=removable apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZ mce=0 vsyscall=none"

# Options passed to isohybrid
AMNESIA_ISOHYBRID_OPTS="-h 255 -s 63"

# Minimal upstream version of syslinux-utils we need
REQUIRED_SYSLINUX_UTILS_UPSTREAM_VERSION="6.03~pre20"

# Kernel version
KERNEL_VERSION='4.7.0-0.bpo.1'
KERNEL_SOURCE_VERSION=$(
   echo "$KERNEL_VERSION" \
       | perl -p -E 's{\A (\d+ [.] \d+) [.] .*}{$1}xms'
)

### You should not have to change anything below this line ####################

# sanity checks
if [ ! -x "`which dpkg-parsechangelog`" ]; then
   echo "could not find dpkg-parsechangelog, please apt-get install dpkg-dev" >&2
   exit 2
fi

# Compute the current Amnesia's version once for all
AMNESIA_NOW="`date --utc '+%Y%m%dT%H%MZ'`"
AMNESIA_TODAY="`date '+%Y%m%d'`"
AMNESIA_VERSION="`dpkg-parsechangelog -SVersion`"
AMNESIA_FULL_VERSION="${AMNESIA_VERSION} - ${AMNESIA_TODAY}"

# Developpers' data used by git-dch, debcommit and friends in the release script
AMNESIA_DEV_FULLNAME='Tails developers'
AMNESIA_DEV_EMAIL="tails@boum.org"
AMNESIA_DEV_KEYID="A490 D0F4 D311 A415 3E2B  B7CA DBB8 02B2 58AC D84F"
